package isi.servlet.shop;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Carrello extends HttpServlet{

	private static final long serialVersionUID = 1L;
	@Override public void doPost(HttpServletRequest req, HttpServletResponse res){
		
		try{
			InputStreamReader in= new InputStreamReader(req.getInputStream());
		    BufferedReader bin= new BufferedReader(in);
		    String text = null;
		    while((text = bin.readLine()) != null) System.out.println(text);
		}
		catch(IOException e){ e.printStackTrace(); }
		
	}
}

